package com.touna.regex;

import java.util.regex.Pattern;

/**
 * author: xl
 * time: 2018/6/19 11:55
 * description:正则表达式
 **/
public class RegexTest1 {

    public static void main(String[] args) {

        String pattern = "[A-z]";
        //邮箱验证
        pattern = "\\w+\\[\\w+\\]$";
        System.out.println(Pattern.matches(pattern, "abc[11]"));//测试"."匹配任意字符与空白字符"\s与非空白字符\S"



    }



}
